package com.ruoyi.tb.lmt.service;

import com.ruoyi.tb.lmt.domain.vo.TEquipmentVo;
import com.ruoyi.tb.lmt.domain.bo.TEquipmentBo;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.core.domain.PageQuery;
import com.ruoyi.tb.lmt.domain.vo.TbDistVo;

import java.util.Collection;
import java.util.Date;
import java.util.List;

/**
 * 高价互换件管理Service接口
 *
 * @author ruoyi
 * @date 2024-01-25
 */
public interface ITEquipmentService {

    /**
     * 查询高价互换件管理
     */
    TEquipmentVo queryById(Long ID);
    TEquipmentVo queryByCode(String code );

    /**
     * 查询高价互换件管理列表
     */
    TableDataInfo<TEquipmentVo> queryPageList(TEquipmentBo bo, PageQuery pageQuery);

    /**
     * 查询高价互换件管理列表
     */
    List<TEquipmentVo> queryList(TEquipmentBo bo);

    /**
     * 新增高价互换件管理
     */
    Boolean insertByBo(TEquipmentBo bo);

    /**
     * 修改高价互换件管理
     */
    Boolean updateByBo(TEquipmentBo bo);

    /**
     * 校验并批量删除高价互换件管理信息
     */
    Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);

    TableDataInfo<TEquipmentVo> selectEquipment(String equipmentTypecode, String lmtNumber, String lmtLength, String stockStation, String status,String dateType, Date repairStartDate, Date repairEndDate,String equipmentCode, PageQuery pageQuery);

    List<TEquipmentVo> selectEquipment(String equipmentTypecode, String lmtNumber, String lmtLength, String stockStation, String status,String dateType, Date repairStartDate, Date repairEndDate,String equipmentCode);

    List<TbDistVo> selectByEquipment(String equipmentTypecode);

    TableDataInfo<TEquipmentVo> selectEquByLmtNumber(String lmtNumber, PageQuery pageQuery);
}
